import React, { Component } from 'react'

export default class Lission1 extends Component {
    static tips = <div className='tips'>
        <br />
        <br />
        <p>这个组件只有一个color状态render方法</p>
        <p>这就是react的核心，state[状态]=&gt;view[视图]的映射</p>
    </div>
    static official = 'https://react.docschina.org/docs/hello-world.html'
    state = {
        color: 'red'
    }
    render() {
        return (
            <div style={{
                color: this.state.color
            }}>
                hello world
            </div>
        )
    }
}
